package de.lusiardi.webdav.xml;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * http://www.webdav.org/specs/rfc4918.html#ELEMENT_activelock
 *
 * @author Joachim Lusiardi
 */
@XmlRootElement(name = "activelock")
public class ActiveLock {

    @XmlElement(required = true)
    private LockScope lockScope;

    @XmlElement(required = true)
    private LockType lockType;

    @XmlElement(required = true)
    private Depth depth;

    @XmlElement(required = false)
    private Owner owner;

    @XmlElement(required = false)
    private TimeOut timeOut;

    @XmlElement(required = false)
    private LockToken lockToken;

    @XmlElement(required = true)
    private LockRoot lockRoot;

    public LockScope getLockScope() {
        return lockScope;
    }

    public void setLockScope(LockScope lockScope) {
        this.lockScope = lockScope;
    }

    public LockType getLockType() {
        return lockType;
    }

    public void setLockType(LockType lockType) {
        this.lockType = lockType;
    }

    public Depth getDepth() {
        return depth;
    }

    public void setDepth(Depth depth) {
        this.depth = depth;
    }

    public Owner getOwner() {
        return owner;
    }

    public void setOwner(Owner owner) {
        this.owner = owner;
    }

    public TimeOut getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(TimeOut timeOut) {
        this.timeOut = timeOut;
    }

    public LockToken getLockToken() {
        return lockToken;
    }

    public void setLockToken(LockToken lockToken) {
        this.lockToken = lockToken;
    }

    public LockRoot getLockRoot() {
        return lockRoot;
    }

    public void setLockRoot(LockRoot lockRoot) {
        this.lockRoot = lockRoot;
    }
}
